# encoding: UTF-8
 
class Site::PicturesController < ApplicationController

  layout 'site'

  def index
    @pictures = Photo.open_status.paginate(:page => params[:page], :per_page => '15')
    @category = ['游戏图片']
    @categories = Node.photo_category.open_status.all
    @gamedata = Level.open_status.level_guides
    @gamerole = Role.open_status.all
    @gamefeature = Feature.open_status.all
    @gameequip = Sort.open_status.equips_sorts
    @newto = Manual.open_status.newto_all
    set_seo_meta '游戏图片'
  end

  def show
    @picture = Photo.open_status.find(params[:id])
    @category = ['游戏图片']
    @categories = Node.photo_category.open_status.all
    @newto = Manual.open_status.newto_all
    set_seo_meta '游戏图片'

  end

end
